package hhm.javamode.singleton.simulate;

public class TestSingleton {
	public static void main(final String[] args) throws InterruptedException {
		for (int i = 1; i <= 10000000; i++) {
			final Thread t1 = new Thread(new ThreadSingleton());
			t1.setName("thread" + i);
			t1.start();
		}
	}

	public static class ThreadSingleton implements Runnable {
		@Override
		public void run() {
			Singleton.getInstance();
		}
	}
}